package com.atmilan.quartz.model.entity.carotta;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Leam商品映射对象
 * @Description: 
 * @author daigb
 * @date 2021-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CarottaProduct extends Model<CarottaProduct> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 商品名称
     */
    private String title;

    /**
     * 商品描述
     */
    private String bodyHtml;

    /**
     * 品牌
     */
    private String vendor;

    /**
     * 产品类型
     */
    private String productType;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * handle
     */
    private String handle;

    /**
     * 更新时间
     */
    private Date updatedAt;

    /**
     * 发布时间
     */
    private Date publishedAt;

    /**
     * 模板后缀
     */
    private String templateSuffix;

    /**
     * 状态
     */
    private String status;

    /**
     * 发布范围
     */
    private String publishedScope;

    /**
     * 标签
     */
    private String tags;

    /**
     * admin_graphql_api_id
     */
    private String adminGraphqlApiId;

    /**
     * image
     */
    private String image;

    /**
     * images
     */
    private String images;

    /**
     * 创建时间
     */
    private Date creatTime;

    /**
     * 最后拉取时间
     */
    private Date lastPushTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
